package com.wis.traffic.post.service.impl;

import com.wis.traffic.entity.base.BaseDAO;
import com.wis.traffic.entity.dao.RiskThreshold;
import com.wis.traffic.post.base.PostBaseDAOImpl;
import com.wis.traffic.post.service.RiskThresholdService;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public class RiskThresholdServiceImpl implements RiskThresholdService {
    private String nameSpace = RiskThreshold.class.getName();
    private BaseDAO<RiskThreshold, Serializable> baseDao = new PostBaseDAOImpl<>();

    @Override
    public List<Object> getListByParams(Map<String, Object> params) {
        return baseDao.getObject(nameSpace,"selectListByParams", params);
    }

    @Override
    public Integer insertBatchReturnId(RiskThreshold riskThreshold) {
        return baseDao.insertBatchReturnId(nameSpace,riskThreshold);
    }
}
